// dlg.txt

begintalkscript;

variables;

begintalknode 1;
	state = -1;
	nextstate = -1;
	condition = get_sdf(35,2) == 0;
	question = "special";
	text1 = "You enter Kratoa-Kel, the keep at the top of this pass between the Mera-Tev to the north and the Storm Plains to the south. The climb up here was long and exhausting.";
	text2 = "The path was narrow and rocky, with many switchbacks. Anyone trying to attack this keep would have a very difficult time. Put a handful of kyshakks at the top of the narrow trail and any attackers would suffer gruesome casualties.";
	text3 = "The border between the two provinces is, as seems to be usual now, sealed. Travel is highly restricted, in the hope of keeping new, noxious creation types quarantined as much as possible.";
	text4 = "Thus, you are unsurprised to see that the guards are watching you warily and that the huge stone doors at the far end of the keep are closed. You won't be able to pass through without, at the very least, speaking with the commander.";
	action = SET_SDF 35 2 1;

begintalknode 2;
	state = -1;
	nextstate = -1;
	condition = get_sdf(35,3) == 0 && gf(12,2) == 5;
	question = "special";
	text1 = "Years worth of customs records are crammed in this dank cave, giving a record of trade going back to before the rebellion. It looks like they have had a fire recently. Many of the scrolls were destroyed.";
	text2 = "The fire appears to have happened at least a year ago. Well before the assassination attempt. You look through the papers and find only tedious ledgers describing a long series of caravans and traveling soldiers.";
	text3 = "There is no clue here of where Astoria's assassins came from.";
	action = SET_SDF 35 3 1;
	code =
		if (gf(36,1) > 0)
			rs(3);
	break;
	
begintalknode 3;
	state = -1;
	nextstate = -1;
	condition = get_sdf(35,4) == 0;
	question = "special";
	text1 = "This hall is provided so that merchants traveling through the pass have a place to safely rest and repair their equipment. The Shapers provide this service gratis to encourage trade and good feelings.";
	text2 = "It is currently empty. It doesn't look like a caravan has been through here in at least a few days.";
	action = SET_SDF 35 4 1;

begintalknode 4;
	state = -1;
	nextstate = -1;
	condition = get_sdf(35,5) == 0 && gf(35,1) == 0;
	question = "special";
	text1 = "You enter the main hall, where the commander of this keep gives orders and evaluates travelers.";
	text2 = "It is built on a huge foundation of stone. It looks like it is centuries old. Perhaps this keep was first made by the woods people of the Mera-Tev, defending their lands from hostile incursions for many years before the Shapers came.";
	text3 = "Kratoa-Kel must be considered a very important part of the Mera-Tev's defenses. It is run by a full Guardian. He sits on the throne, flanked by creations, ready to impress the new visitor with the full glory of the Shapers.";
	text4 = "When you approach, he inspects you carefully. He doesn't care for you. He says, _I am Guardian Makar, commander of Kratoa-Kel. None pass through here without my permission. Approach and state your business. Quickly._";
	action = SET_SDF 35 5 1;

begintalknode 5;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "This pot contains trash. The foul-smelling stuff is several weeks old.";
	text2 = "You search through it, looking for clues. Alas, not all pots in Terrestia contain valuable information.";
	code =
		if ((gf(12,2) != 5) || (gf(36,1) > 0))
			rs(2);
	break;

begintalknode 6;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The pot is empty. A brief search for invisible treasure reveals nothing.";

begintalknode 7;
	state = -1;
	nextstate = -1;
	condition = gf(35,13) == 0 && gf(35,18) == 0;
	question = "special";
	text1 = "You approach the southern gates of Kratoa-Kel. They are closed. You shout for someone to come help you, but nobody answers.";
	text2 = "Perhaps you would have better luck if you entered from the other side.";
	action = SET_SDF 35 13 1;

begintalknode 8;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "Kratoa-Kel is guarded by a host of powerful creations. They are freshly created. Their skin is smooth and their bodies are without flaw.";
	text2 = "They are also under perfect control. Their creator must still be nearby.";
	text3 = "They are not currently rogue, but they are quite anxious. Their heads dart from side to side, and they sometimes snap at each other. If another Shaper is not posted here soon, they may be a problem.";
	code =
		if (gf(36,1) == 0)
			rs(3);
			else rs(2);
	break;
	
begintalknode 9;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "Kratoa-Kel is defended both by creations and by a decent complement of well-trained human soldiers. You try to talk to them and learn something about recent events.";
	text2 = "Alas, while they are friendly enough, they let you know that they have received clear orders. All unusual visitors are to be sent directly to Guardian Makar.";
	text3 = "You push a bit more, trying to get some information about the assassin that may have passed through here. You soon suspect that this soldier doesn't know anything.";
	text4 = "You don't get any conversation at all. While the soldiers aren't actively hostile, their desire to chat with the person who killed their commander, justifiably or not, is pretty much nil.";
	code =
		if (gf(36,1) > 0) {
			rs(2); rs(3);
			}
			else {
				rs(4); 
				if (gf(12,2) != 5)
					rs(3);
				}
	break;


begintalknode 10;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Guardian Makar";
	text1 = "You approach Guardian Makar, commander of Kratoa-Kel. He lifts the visor of his helmet to inspect you. You aren't sure how much he has heard about you. He looks at you with clear distaste.";
	text2 = "You can see that he is an old man. Most Shapers, when they reach advanced age, retire, leave the control of creations to younger, more energetic members of their sect, and go somewhere calm to dispense wisdom.";
	text3 = "Makar has, instead, opted for a more active retirement. Sitting in this fort is not a prestigious or exciting job, but it is important. And he obviously takes it seriously. _We get few visitors here. Fewer pass through, and none without my blessing._";
	text4 = "_You are a suspect creature. You have clearly been touched by illegal Shaping. I can sense the essence in you. You had best show me something that gives you the authority to travel through our lands._";
	text5 = "Guardian Makar looks at you with distaste. He acts like there is a foul odor in the air. _What else do you wish to know, Warped One? You still have no permission to pass through here. Or be here, for that matter._";
	action = INTRO;

begintalknode 11;
	state = 10;
	nextstate = -1;
	condition = gf(35,6) == 0;
	question = "I will not explain myself to you.";
	text1 = "Makar's arrogance has an effect on you. You feel your temper rising, but you choke it back. When you rebuff him, he smiles. _I can see it in you. The warping. The anger. The raw, uncontrolled energy._";
	text2 = "_This is not the first time I have faced a creature like you. Leave and return when you have regained control._";
	action = END_TALK;

begintalknode 12;
	state = 10;
	nextstate = -1;
	condition = gf(35,6) == 0 && gf(12,2) == 5;
	question = "Astoria herself sent me here.";
	text1 = "_Really? Amusing. Before I evaluate that questionable claim, I want to see your papers of transit. I want proof you are even allowed to be here._";
	
begintalknode 13;
	state = 10;
	nextstate = -1;
	condition = gf(35,6) == 0;
	question = "(Show your papers.)";
	text1 = "_Well, then. Let's see your paperwork. This should be amusing._ Makar's arrogance has an effect on you. You feel your temper rising, but you choke it back. He seems to be intentionally trying to draw this response from you.";
	text2 = "He reads the papers, chuckles, and hands them back to you. _Those are signed by Rawal. I should imprison you for carrying his papers, not aid you. They say I should treat a thing like you as a Shaper. Hah!_";
	text3 = "_Your permission to pass through is denied, Warped One. Do what business you have here, and go._";
	text4 = "As he speaks, the woman sitting at the desk behind him takes notes of everything he says.";
	action = SET_SDF 35 6 1;

begintalknode 14;
	state = 10;
	nextstate = 11;
	condition = gf(35,6) > 0;
	question = "Tell me about this keep.";
	text1 = "_I see no reason to tell you anything beyond what you already see, creature. There are two passes between the Storm Plains and the Mera-Tev. Only this pass remains clear of the enemy._";
	text2 = "_We keep spies and rogues from traveling back and forth. And, since you appear to be both, this will work against you._";
	text3 = "He looks back at the woman behind him to make sure that she got that down.";

begintalknode 15;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "What happened to the other pass?";
	text1 = "_It was seized by one of the Unbound. The commander there was weak. Not a Shaper. Now there is a wide variety of rogues up there. Neither Astoria to the north or Alwan to the south has expended the energy to retake it._";
	text2 = "_Thus, I was sent here._";

begintalknode 16;
	state = 11;
	nextstate = 12;
	condition = 1;
	question = "Why was a full Guardian sent to this fort?";
	text1 = "_To make sure it stays open. It is too important a task to be given to a mere outsider. Thus, I was pulled from the field by Astoria and sent to this backwater._";
	text2 = "He waves at the host of powerful creations that surround him. _It does, at least, allow my skills to be put to use._ Despite his age (or perhaps because of it), Makar is an extremely skilled Shaper.";
	
begintalknode 17;
	state = 11;
	nextstate = 10;
	condition = 1;
	question = "You have been a Guardian for a long time?";
	text1 = "_You are saying that I am old, yes? In a way that you think is diplomatic? I am a Guardian, and I have been since long before Astoria came to the Mera-Tev. My control over my creations is as strong as it has ever been._";
	text2 = "_Enough of this. I still do not see why I should speak with you at all._";

begintalknode 18;
	state = 12;
	nextstate = -1;
	condition = 1;
	question = "What do you think of Astoria?";
	text1 = "_You ask about the business of Shapers, Warped One. You should remember your place._";

begintalknode 19;
	state = 10;
	nextstate = 13;
	condition = gf(35,6) > 0;
	question = "Why do you call me 'Warped One'?";
	text1 = "_You think I have never seen your kind before? I've heard stories of Rawal's new, cunning servant. And here you are. You are just the same as the others. A canister addict. Powerful, but unfocused. Erratic._";
	
begintalknode 20;
	state = 13;
	nextstate = -1;
	condition = 1;
	question = "You have met people like me?";
	text1 = "_No. I have fought people like you. Human and creation. Vile creatures, who break our laws by simply existing._";
	text2 = "_And I killed them. They were no match for the focus and discipline of a true Shaper._";

begintalknode 21;
	state = 13;
	nextstate = -1;
	condition = 1;
	question = "How am I erratic?";
	text1 = "Makar points at you and laughs, a nasty, arrogant, smug chuckle. Your skin flushes. You start to feel irritated, but you quash the feeling. It is surprisingly easy.";
	text2 = "Then Makar stops laughing. He nods. _You have not partaken of the canisters as much as I thought. You are still a creature in my eyes, but you are at least not a reckless one._";
	text3 = "Makar points at you and laughs, a nasty, arrogant, smug chuckle. Your skin flushes. You feel furious. Your hands start to rise at your sides.";
	text4 = "Then Makar stops laughing. He turns serious. You calm down again. _You have partaken deeply of the canisters. They change you. They make you weak. You should be careful about Shaping yourself._";
	action = DEP_ON_SDF 100 22 8;
	
begintalknode 22;
	state = 13;
	nextstate = -1;
	condition = 1;
	question = "What have you heard of me?";
	text1 = "_Just stories. Most false, obviously. A product of the vomit of gossip that appears in war._";
	text2 = "_I only judge you by what I see. And that does not speak in your favor._";

begintalknode 23;
	state = 10;
	nextstate = -1;
	condition = gf(35,6) > 0 && gf(12,2) != 5;
	question = "I would like to pass through here.";
	text1 = "_And so we come to the main point of business. And we can bring this conversation to a merciful end._";
	text2 = "_Until Astoria personally sends word that you are to be let through here, I will not let you through. Now leave. Do your business and go. I will not have your impurities here longer than necessary._";
	action = END_TALK;
	
begintalknode 24;
	state = 10;
	nextstate = 15;
	condition = gf(12,2) == 5 && gf(35,7) == 0 && gf(35,6) > 0;
	question = "Astoria sent me here. She believes that the assassins who tried to kill her have a contact here.";
	text1 = "Guardian Makar frowns. _That is grim news, indeed._ He turns to the woman taking notes behind him. _Somini, be sure not to miss a word of this._ She nods.";
	text2 = "Makar says, _For someone to try to assassinate a member of the Council ... This is unforgivable. I do not care for you, creature. But if Astoria thinks that you can find this villain, I will not stand in your way._";
	action = SET_SDF 35 7 1;
	
begintalknode 25;
	state = 15;
	nextstate = -1;
	condition = 1;
	question = "You had no suspicion that this was happening?";
	text1 = "_No. I am ashamed of this lapse on my part. Assuming, of course, your intelligence is true._";
	text2 = "He looks behind him to make sure Somini recorded that. She gives a little nod.";
	
begintalknode 26;
	state = 15;
	nextstate = -1;
	condition = 1;
	question = "Do you have any idea who the assassin was going to meet here?";
	text1 = "_I do have some ideas. Let me think for a moment more. I wish to be sure._";
	
begintalknode 27;
	state = 15;
	nextstate = 10;
	condition = 1;
	question = "I'd like to hear what you know of this situation.";
	text1 = "_Of course. I will cooperate fully. On this matter._";
	
begintalknode 28;
	state = 10;
	nextstate = -1;
	condition = gf(35,7) > 0 && gf(35,8) == 0;
	question = "Who is taking notes?";
	text1 = "_Somini. My assistant. I keep careful records of everything that happens here. Then, if the Shaper Council has any ... questions about events on the border, I can be precise and accurate in my responses._";
	text2 = "_Somini is an outsider, but she is smart and loyal to our kind. Yes, Somini?_ He smiles at her.";
	text3 = "She turns and looks at you. She gives you a weak smile and returns to her work.";
	text4 = "She turns and looks at you. There is something wrong. Something is making her very nervous. She gives you a weak smile and returns to her work.";
	code =
		if (get_stat(20) < 9)
			rs(4);
			else rs(3);
	break;
	
begintalknode 29;
	state = 10;
	nextstate = 17;
	condition = gf(35,7) > 0;
	question = "Why do you think someone tried to kill Astoria?";
	text1 = "_It takes no great insight, in this time of war, to see why someone would try to kill a member of the Shaper Council._";
	text2 = "_Of course, Astoria has occasionally followed paths that were ... controversial. But I think that the rebels or the drakons are natural suspects. Or the Trakovites._";
	
begintalknode 30;
	state = 17;
	nextstate = -1;
	condition = 1;
	question = "The Trakovites?";
	text1 = "_Their hatred for the Shapers and their ways is well known, as is their fanaticism. One of their agents might have slipped out of the Okavano swamp to attempt this crime._";
	
begintalknode 31;
	state = 17;
	nextstate = 18;
	condition = 1;
	question = "What sort of controversial things did Astoria do?";
	text1 = "_There are rumors of her trying to make peace with the rebels. I will not state my mistrust in all rumors._";
	text2 = "_And, even if these libels were true, the place to deal with this is in the Shaper Council, among Shapers._";
	
begintalknode 32;
	state = 18;
	nextstate = -1;
	condition = 1;
	question = "Do you think she should make peace with the rebels?";
	text1 = "_Of course. On our terms. In accordance with all of the laws of the Shapers. But she is in the Council. I am not. I will trust her wisdom._";
	
begintalknode 33;
	state = 10;
	nextstate = 20;
	condition = gf(35,7) > 0;
	question = "Where do you think I should look for the assassins?";
	text1 = "Guardian Makar thinks carefully about this. Then he says, _This fort is small. Little happens here I do not know about. But there is one thing here I do not have full control over. The Stoneworks._";
	
begintalknode 34;
	state = 20;
	nextstate = -1;
	condition = 1;
	question = "You are sure that you know everything about this fort?";
	text1 = "_As soon as I heard of the attempt on Astoria's life, I carried out my own investigation here. Searching. Questioning. All part of my duties, you see._";
	text2 = "_I found nothing. But then, I did not search the Stoneworks._";
	
begintalknode 35;
	state = 20;
	nextstate = 21;
	condition = 1;
	question = "What are the Stoneworks?";
	text1 = "_A Shaper installation, for working stone into tools for our use. Essence pool basins. Alchemical pots. The occasional golem. And so on. It was sealed several decades ago. Some sort of accident. I don't know the details._";
	text2 = "You notice that Somini stops writing for a moment. Just a short pause. Then she starts again. Her hand is shaking.";
	text3 = "_Normally, I would not mention it, but for the noises._";
	code =
		if (get_stat(20) < 6)
			rs(2);
	break;
	
begintalknode 36;
	state = 21;
	nextstate = -1;
	condition = 1;
	question = "Who heard these noises?";
	text1 = "_A guard on detail. Whenever a Barred area is this close to an active settlement, a guard must be posted at all hours. Shaper law. Wise, if inconvenient._";
	
begintalknode 37;
	state = 21;
	nextstate = -1;
	condition = 1;
	question = "What sort of noises?";
	text1 = "_A few clunks. A hum. Stone grinding on stone. Brief and barely perceptible, but it did draw attention after decades of silence._";
	
begintalknode 38;
	state = 21;
	nextstate = 22;
	condition = 1;
	question = "Can I investigate the Stoneworks?";
	text1 = "_This seems wise. It will give me time to question everyone here again and search every room, every bookshelf, every dresser._";
	text2 = "_The entrance to the Stoneworks is to the northeast. I will have it unsealed for you. It should be interesting. You will be the first person to enter in decades. Or, at least, that is supposed to be the case._";
	code =
		sf(35,19,1);
	break;
	
begintalknode 39;
	state = 22;
	nextstate = 10;
	condition = 1;
	question = "Anything else you can tell me about the Stoneworks? Or any plans?";
	text1 = "_I am afraid not. As I said, it has been closed for decades. I suspect that you will only find a tedious series of empty rooms, and the noises were only caused by minor vermin. Still, on my authority, you can and should investigate._";
	text2 = "";
	
begintalknode 40;
	state = 10;
	nextstate = -1;
	condition = gf(35,7) > 0 && gf(35,19) > 0;
	question = "Can you help me find any more information about the Stoneworks?";
	text1 = "Guardian Makar shakes his head. _You know everything I do. Even Shapers have a hard time learning about Barred areas. I wish you luck in tracking down these criminals. Despite your warped nature, you might do some good._";
	text2 = "_Somini, please transcribe your report of this meeting._ Somini nods, rises, and turns to leave.";
	text3 = "As she walks by you, she makes eyes contact with you very briefly. Something is bothering her.";
	code =
		if (gf(35,8) > 0) {
			rs(2); rs(3);
			}
			else {
				sf(35,8,1);
				if (get_stat(20) < 6)
					rs(3);
				}
	break;


begintalknode 45;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "Guardian Makar collapses to the ground, mortally wounded. His sword falls to the ground with a clang. He painfully crawls his way over to a wall and leans against it.";
	text2 = "_How ... How did you know? I didn't ... Didn't want to kill her. Astoria would have betrayed us. Ended our ways. But I ... I shouldn't have done it. I deserve this ... Deserve ..._";
	text3 = "His hands fall limp at his side. He closes his eyes. Then he dies calmly, with dignity. In battle. It is the sort of fate all Guardians aspire to.";
	text4 = "Apparently, Makar was the one who tried to kill Astoria. It won't make the people in this fort any better disposed to you, but Astoria will be pleased.";
	text5 = "You see that Makar has a short, polished wooden baton hanging from his belt. It is an insignia of some kind. You take it. It might be able to control the doors that lead in and out of the fort.";

begintalknode 46;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "Kratoa-Kel has a handful of servile servants. They keep things clean and tend to some small patches of crops.";
	text2 = "They are very loyal, simple creatures. You can only get a few snippets of crude, nervous conversation out of them.";

begintalknode 47;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The obelisk says:";
	text2 = "  KRATOA-KEL";
	
//

begintalknode 50;
	state = -1;
	nextstate = 50;
	condition = 1;
	question = "Name";
	text1 = "There is a small woman sitting at the desk behind Guardian Makar. She is surrounded by papers, pens, and bottles of ink. Her fingers are covered with black smudges.";
	text2 = "When you approach her, she is very nervous. She seems to be used to being an invisible part of the scenery. She points at Makar and whispers, _There. The Guardian is there._";
	action = END_TALK;


	
begintalknode 52;
	state = -1;
	nextstate = 50;
	condition = 1;
	question = "";
	text1 = "This must be Somini's office. It's surprisingly large and nice. Two pieces of the strange, angular art favored by the Shapers sit in the corners.";
	text2 = "She is sitting at her desk, transcribing some of Makar's conversations. She occasionally takes a sip of water from a glass goblet.";
	text3 = "When you approach, she says, _I'm sorry. I am very busy. I mean ... I can help. But not much. I don't know anything Guardian Makar doesn't._";
	text4 = "Somini looks up at you. _Is there anything else I can do for you? I have so much to do._";
	text6 = "Somini looks up at you. She seems distraught. _I'm sorry. I ... Events have gotten ahead of me. I ... I did not know what Makar was doing. I swear it._";
	code =
		clear_strings();
		if (gf(36,1) > 0)
			as(6);
			else if (gf(35,9) == 0) {
				as(1); as(2); as(3);
				sf(35,9,1);
				}
				else as(4);
	break;
	
begintalknode 53;
	state = 50;
	nextstate = -1;
	condition = gf(36,1) > 0;
	question = "What will you do now?";
	text1 = "_I will wait. I will direct things and keep things under control until ... Until a replacement for Makar arrives, I suppose._";
	
begintalknode 54;
	state = 50;
	nextstate = -1;
	condition = gf(36,1) > 0;
	question = "You really didn't know about Makar?";
	text1 = "_I swear it. I knew he was angry. I knew something was wrong. But ... For a Shaper to try to kill another Shaper? I couldn't imagine it. Before now._";
	
begintalknode 55;
	state = 50;
	nextstate = -1;
	condition = gf(36,1) > 0;
	question = "Are you sure that the fort can manage?";
	text1 = "_No ... Not without Makar. His creations have ... I hope that the Shapers send ... I'm sorry. Please excuse me._ She turns away and starts to cry. Events have clearly overcome her.";
	action = END_TALK;

begintalknode 56;
	state = 50;
	nextstate = 51;
	condition = gf(36,1) == 0;
	question = "What do you do for Makar?";
	text1 = "_Oh, many things. Take notes. Draft letters. Tell people what to do when he is distracted. He makes sure that my ... suggestions are listened to when he is occupied._";

begintalknode 57;
	state = 51;
	nextstate = -1;
	condition = 1;
	question = "The soldiers really listen to you?";
	text1 = "_I ... I know. I am quiet. I ... I don't like to tell them to do things. But I just say what I think would keep Guardian Makar from being angry. And they listen._";

begintalknode 58;
	state = 51;
	nextstate = -1;
	condition = 1;
	question = "What keeps Makar busy?";
	text1 = "_Making and controlling his creations is difficult for him. It is so hard for Shapers. They must keep so much control for so long._";
	text2 = "_I help him however I can._";

begintalknode 59;
	state = 51;
	nextstate = -1;
	condition = 1;
	question = "What do you think of Makar?";
	text1 = "She seems shocked. _Why would you ask me that? Are you ... No ... Guardian Makar is as strong and steadfast a leader as the Shapers could want. I know he doesn't like you, but you should show him respect._";
	text2 = "_The Shapers are our leaders, after all._";

begintalknode 60;
	state = 50;
	nextstate = -1;
	condition = gf(36,1) == 0;
	question = "Can I get any supplies here?";
	text1 = "_You can. We keep a smithy here to help the merchant caravans. You should talk to Barragan._";

begintalknode 61;
	state = 50;
	nextstate = 52;
	condition = gf(36,1) == 0;
	question = "What do you know about the Stoneworks?";
	text1 = "_Only what Guardian Makar told me. It is a Shaper place. Barred. That means nobody can enter without permission from a high-ranking Shaper._";
	text2 = "_It has been here for years. Nobody really thinks about it._";
	text3 = "Talking about this topic makes her very nervous.";
	code =
		if (get_stat(20) < 6)
			rs(3);
	break;
		
begintalknode 62;
	state = 52;
	nextstate = -1;
	condition = 1;
	question = "Why was it Barred?";
	text1 = "_There is no record of it. Typically sloppy record-keeping. From my predecessors, I mean._";

begintalknode 63;
	state = 52;
	nextstate = -1;
	condition = 1;
	question = "What do you think made those noises?";
	text1 = "_I did not hear them. I wouldn't guess._";
	text2 = "She gets more nervous with every passing moment.";
	code =
		if (get_stat(20) < 6)
			rs(2);
	break;

begintalknode 64;
	state = 52;
	nextstate = 53;
	condition = get_stat(20) >= 6 && gf(35,10) == 0;
	question = "What is bothering you?";
	text1 = "_Bother? Me? Nothing ... I am just ... That someone would try to kill a member of the Council. And then come here. It's just too horrible. That is all._";
	text2 = "You suspect that she is not telling the whole truth, but you aren't able to get anything else out of her.";
	text3 = "You are sure that she is not telling the whole truth.";
	code =
		if (get_stat(20) < 9)
			rs(3);
			else rs(2);
	break;
	
begintalknode 65;
	state = 53;
	nextstate = 50;
	condition = get_stat(20) >= 7;
	question = "I was sent here by Astoria herself. You must tell me everything you know. Now.";
	text1 = "Somini looks stricken. She looks down at the surface of the desk, almost paralyzed with fear. Finally, she reaches into her desk, into the back of a lower shelf, and brings out a key.";
	text2 = "_I found this in the customs hall. There was a fire. Most of the old records were destroyed. I found this before all of the old records were thrown out. It was inside a scroll that was mostly burnt up._";
	text3 = "_I don't know why I saved it. It just ... I was bothered. It's an old key. I think it was from the Stoneworks._ She shoves it into your hand.";
	text4 = "_I don't know what is happening. You did not get that key from me. Please leave._ She returns to work. Her hand is shaking so hard she can barely maneuver the pen.";
	action = END_TALK;
	code =
		sf(35,10,1);
		set_spec_item(49,1);
		award_party_xp(150,15);
	break;
	
begintalknode 66;
	state = 53;
	nextstate = 50;
	condition = get_stat(20) < 7;
	question = "Fine. I'd like to know something else.";
	text1 = "She seems relieved. _I'll help you any way I can._";

begintalknode 67;
	state = 50;
	nextstate = -1;
	condition = gf(36,1) == 0;
	question = "Have you worked for Makar long?";
	text1 = "_A few years. Since he was pulled back from the battlefield and put in more ... defensive positions. He had to give lots more reports. He doesn't like reports. So he found me._";
	text2 = "_It was ... I feel very lucky. It is an honor to work for a true hero of the Shapers._";


// Barragan

begintalknode 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = "This is a small smithy and shop, where passing merchants and travelers can trade and get their equipment repaired. There is only one man working here now, and he is very bored.";
	text2 = "When you enter, he jumps to his feet and runs up to you. _A customer ... Yes? That is why you are here? To trade? Oh, I hope so. It has been a slow, slow time._";
	text3 = "_I am Barragan, and this is my trading post. Which has seen better times, as you can see._";
	text5 = "Barragan says, _Surely you are not content? There must be something else you need? Come look at my wares. I have the best goods for twenty miles around._";
	action = INTRO;

begintalknode 71;
	state = 70;
	nextstate = 71;
	condition = 1;
	question = "Can you tell me about this place?";
	text1 = "He walks to the door, looks out at the fortress that he calls home, and sighs. _This is Kratoa-Kel. It is the major pass between north and south Terrestia. It used to be one of the two major passes. Not anymore._";
	text2 = "_It's very old. The Shapers used to have a big workshop here. But, now that the borders are usually closed, it just sits here. Mostly empty most of the time._";

begintalknode 72;
	state = 71;
	nextstate = -1;
	condition = 1;
	question = "What happened to the other pass?";
	text1 = "_There is another pass through these mountains to the west. There was a keep guarding it, but it wasn't well protected. It's full of rogues now. Nobody can get through._";

begintalknode 73;
	state = 71;
	nextstate = -1;
	condition = 1;
	question = "How old is this keep?";
	text1 = "_It was first built by the woods people of the Mera-Tev. The Shapers lost many soldiers trying to take it from them. Of course, they succeeded. The Shapers always succeed in the end._";
	text2 = "_This was centuries ago, of course._";

begintalknode 74;
	state = 71;
	nextstate = 72;
	condition = 1;
	question = "What was the old Shaper workshop?";
	text1 = "_I'm not sure, entirely. It was sealed up decades before I came here. They called it the Stoneworks._";
	text2 = "He points to the east. _Some of the old equipment from it is just outside it. It's been rusting there since before I was born._";

begintalknode 75;
	state = 72;
	nextstate = -1;
	condition = 1;
	question = "Why was it closed?";
	text1 = "_No idea. The Shapers don't talk about it. I don't ask._";

begintalknode 76;
	state = 72;
	nextstate = -1;
	condition = 1;
	question = "Ever find any useful equipment?";
	text1 = "_No. The Stoneworks were closed up around fifty years ago, I think. Anything of value outside was scavenged long ago. As for inside ..._ He shrugs.";
	text2 = "";

begintalknode 77;
	state = 70;
	nextstate = 73;
	condition = gf(12,2) == 5 && gf(36,1) == 0;
	question = "I am looking for information on someone named Baston.";
	text1 = "_Baston? Doesn't sound familiar. Who is he?_";

begintalknode 78;
	state = 73;
	nextstate = -1;
	condition = 1;
	question = "He tried to assassinate Councilor Astoria.";
	text1 = "Barragan's mouth drops open. _And you think that I ... I never heard of anyone by that name. Never met the man. Or woman. Is Baston a woman's name? I swear I have no idea._";
	text2 = "You suspect that he is telling the truth.";
	code =
		if (get_stat(20) < 5)
			rs(2);
	break;
	
begintalknode 79;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "Let me see your wares.";
	text1 = "You conclude your business.";	
	code = 
		begin_shop_mode("Barragan's Shop",
		  "Barragan's goods are of high quality. Fortunately for you, he hasn't had many customers lately, so he's willing to bargain.",
		  34,3,0);	
	break;

begintalknode 80;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "I would like to sell something.";
	text1 = "You conclude your business.";	
	code = 
		begin_sell_mode();
	break;

begintalknode 81;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "I don't need anything else.";
	text1 = "_That is a shame. I hope, if you change your mind, you come back._";
	action = END_TALK;



// Sergeant Jess

begintalknode 90;
	state = -1;
	nextstate = 90;
	condition = 1;
	question = "Name";
	text1 = "There is a lone soldier standing guard at this door. It is closed, and it looks like it hasn't been opened for years. Lichen and moss cover it and the cracks are full of dust.";
	text2 = "The guard holds out her hand when you approach. _Halt. I am Sergeant Jess of Kratoa-Kel. I tell you that this area is Barred by order of the Shapers. You must turn back._";
	text3 = "Then she drops her hand to her side. _That was the speech. You should go back. There's nothing here anyway._";
	text5 = "Sergeant Jess is still standing guard by the large stone door.";
	action = INTRO;

begintalknode 91;
	state = 90;
	nextstate = 91;
	condition = gf(35,19) == 0;
	question = "I'm not allowed through there?";
	text1 = "_Nobody is. It's Barred. That means that nobody can enter. The Shapers say so. And it always has to be guarded. That's why I'm here._";

begintalknode 92;
	state = 91;
	nextstate = -1;
	condition = 1;
	question = "Why does it have to be guarded?";
	text1 = "_It's just the law. When a Barred place is near where people are, it always has to be guarded. So we soldiers take turns standing back here. It's a miserable duty, but it's the law._";
	text2 = "";

begintalknode 93;
	state = 91;
	nextstate = -1;
	condition = 1;
	question = "Why was it Barred?";
	text1 = "_That's Shaper business. I don't know anything about it. I just go where they tell me._";

begintalknode 94;
	state = 90;
	nextstate = 91;
	condition = gf(35,19) > 0;
	question = "I have permission to pass through the door.";
	text1 = "_You can claim that if you want. I only say what I am ordered to say. This place is Barred. That means that nobody can enter. The Shapers say so._";
	text2 = "Then you get close to the door. It vibrates slightly. Some of the dirt and mold falls away. Sergeant Jess says, _Of course, I could be wrong about all of that._";
	
begintalknode 95;
	state = 90;
	nextstate = 92;
	condition = gf(12,2) == 5 && gf(36,1) == 0;
	question = "I am investigating the attempted assassination of Councilor Astoria.";
	text1 = "Jess suddenly looks very nervous. _And you think I might know something about that? I don't. I'm just a soldier. I know nothing about the ways of Shapers._";
	text2 = "";

begintalknode 96;
	state = 92;
	nextstate = -1;
	condition = 1;
	question = "Ever meet someone named Baston? (Describe him.)";
	text1 = "She shakes her head. _Never met the man._ She thinks about it some more. _No, I am sure of it._";

begintalknode 97;
	state = 90;
	nextstate = 93;
	condition = gf(36,1) == 0;
	question = "What is back there?";
	text1 = "_It's called a Stoneworks. Some sort of Shaper laboratory. That is all I know. It's quiet as a tomb._ She thinks. _Most of the time._";

begintalknode 98;
	state = 91;
	nextstate = -1;
	condition = gf(35,19) == 0;
	question = "How can I enter?";
	text1 = "_You have to get permission from a Shaper, like Guardian Makar. And that won't happen._";

begintalknode 99;
	state = 93;
	nextstate = -1;
	condition = 1;
	question = "But not always?";
	text1 = "_A few weeks ago ... You will think I'm crazy, but I heard something. It was quiet. I had to press my ear against the door, but I heard it. Grinding and clanking. Very quiet, and only for a few minutes._";
	text2 = "_It's been silent ever since. And it might have been my imagination._";

begintalknode 100;
	state = 90;
	nextstate = 95;
	condition = gf(36,1) > 0;
	question = "What has been happening since Guardian Makar died?";
	text1 = "She shakes her head. Word of the confrontation in the Stoneworks has already reached her. _We have sent word to the north. We are hoping they send a replacement for him soon. Otherwise, we will have a real problem._";

begintalknode 101;
	state = 95;
	nextstate = -1;
	condition = 1;
	question = "How so?";
	text1 = "_The creations Makar made are getting very nervous. Every day without a Shaper here ... They won't stay calm forever._";

// Glenny

begintalknode 110;
	state = -1;
	nextstate = 110;
	condition = 1;
	question = "Name";
	text1 = "You meet the customs officer of Kratoa-Kel. No goods or creations traveling through this pass do so without escaping her gaze. Or taxes. Right now, she looks understandably bored.";
	text2 = "She is very pleased to have someone to talk to, since so few travelers have passed through the fort. _Welcome! Welcome! I am Officer Glenny. Not a merchant, I see? Yes ... A warrior. Well, I still should ask you a few questions._";
	text3 = "Her questioning mainly consists of chat about the weather, events in the Mera-Tev, and other topics to ease the tedium. Eventually, you start looking for ways to extricate yourself.";
	text5 = "Customs Officer Glenny loyally remains at her post. However, apart from a desultory effort to sort through the old records, she spends most of her time sipping tea and chatting with anyone who passes by.";
	action = INTRO;

begintalknode 111;
	state = 110;
	nextstate = 111;
	condition = 1;
	question = "Things have been slow lately?";
	text1 = "_Alas, it is true. There has been little travel between the provinces. The tariffs that keep the Shaper coffers full have not been coming in._ She sighs wistfully. _Loyal civil servants such as I must sit and wait._";
	text2 = "_One day, I will be called upon to act again._";
	
begintalknode 112;
	state = 110;
	nextstate = 112;
	condition = 1;
	question = "How are you keeping busy?";
	text1 = "_I have been going through the records. Sorting them. Consolidating them. Burning those that are no longer needed. The Shapers want records of all new or unusual creation types that have been brought through._";
	text2 = "_They have also asked me to try to learn what creations have been taken through Lerman's Pass. As if I could find out that information._";
	code =
		if (gf(35,12) > 1)
			rs(2);
	break;
	
begintalknode 113;
	state = 110;
	nextstate = 114;
	condition = gf(35,3) > 0;
	question = "Have you had a fire recently?";
	text1 = "She nods sadly. _About a year ago. In the middle of the night. While I was asleep. Destroyed some of the older records._";
	text2 = "_Fortunately, the serviles were able to put it out quickly. Everything recent escaped with only smoke and water damage. And let's be honest. Most of those records will never be looked at again anyway._";
	text3 = "_As long as we got the taxes._ She smiles.";
	
begintalknode 114;
	state = 110;
	nextstate = -1;
	condition = gf(35,11) > 0;
	question = "Did you know you have a secret passage in your records room?";
	text1 = "You describe the tunnel to her. She looks very disturbed. _I'm sorry. I'm just a ... a bureaucrat, really._";
	text2 = "_I don't know anything about what has been happening here. I'm out of my depth, really._";
	
begintalknode 115;
	state = 111;
	nextstate = -1;
	condition = 1;
	question = "Why so little travel?";
	text1 = "_The borders are sealed. Because of spies, and rebel serviles trying to steal our serviles away. And because of the rogue creations. The creatures made by the accursed rebels. We are trying to keep them from spreading._";
	text2 = "_Merchants carrying goods needed for the war are allowed through. As are soldiers, of course. Mere tinkers and refugees are turned away._";
	
begintalknode 116;
	state = 111;
	nextstate = -1;
	condition = 1;
	question = "The Shapers collect taxes?";
	text1 = "_Why, of course! It is a small price to pay for all work they do protecting and helping us. Fighting off the rebels is not free._";
	
begintalknode 117;
	state = 112;
	nextstate = -1;
	condition = 1;
	question = "Why do they want to know?";
	text1 = "She shakes her head disapprovingly. _It is not for us to ask why the Shapers do what they do. Sometimes, they audit the movement of untested creation types to make sure that nobody is doing anything they shouldn't._";
	text2 = "_You never know when someone might break the law and carry an unusual creation away for sinister purposes._";
	
begintalknode 118;
	state = 112;
	nextstate = -1;
	condition = gf(35,12) < 2;
	question = "Lerman's Pass?";
	text1 = "_It is the other main pass between the Mera-Tev and the Storm Plains. To the west. It was taken over by rogues, with help from an Unbound. It has not yet been retaken, though I'm sure this will happen soon._";
	
begintalknode 119;
	state = 112;
	nextstate = -1;
	condition = gf(35,12) < 2;
	question = "Any way I can help?";
	text1 = "She brightens up. _In fact, you could. You look like a wandering mercenary type. If you were ever around Lerman's Pass and happened to be looting and pillaging the customs office, see if their creation ledger is intact._";
	text2 = "_It would be worth your time. I am authorized to make payments to recover information for the Shapers. Just beware. I've heard that the defenses of the pass are quite nasty._";
	code = 
		set_flag(35,12,1);
		toggle_quest(69,1);
	break;	
	
begintalknode 120;
	state = 110;
	nextstate = -1;
	condition = gf(35,12) == 1 && has_spec_item(14);
	question = "I found your ledger. (Give it to her.)";
	text1 = "She takes the ledger, wipes the soot and dust off, and flips through it. _Hmmm ... Looks intact. Covers the last year before the outsiders lost the fort. Yes. Exactly what I needed. I hope it didn't cause you any trouble._";
	text2 = "She leaves her office and returns a few minutes later with a generous bag of coins. _Paid directly from collections. This will be some paperwork, of course, but it was necessary. Thank you for your help._";
	code = 
		set_flag(35,12,2);
		toggle_quest(69,3);
		award_party_xp(200,20);
		change_coins(1000);
		set_spec_item(14,-1);
	break;		
	
begintalknode 121;
	state = 114;
	nextstate = -1;
	condition = 1;
	question = "What caused it?";
	text1 = "_I really have no idea. Guardian Makar hinted that I might have left a lamp lit back there, but I did no such thing! It is a mystery._";
	
begintalknode 122;
	state = 110;
	nextstate = 115;
	condition = gf(12,2) == 5 && gf(36,1) == 0;
	question = "I am investigating the attempted assassination of Councilor Astoria.";
	text1 = "She nods. _Of course. I don't know anything, but I am eager to tell you about everything I don't know in great detail._";
	
begintalknode 123;
	state = 115;
	nextstate = -1;
	condition = 1;
	question = "Ever meet someone named Baston? (Describe him.)";
	text1 = "_I will check the records._ She takes you back into the record hall. You spend a merry while looking through caravan reports for anyone of that name. She concentrates, trying to remember if anyone matches your description.";
	text2 = "In the end, it is a waste of time. _I am sorry. Even with the closed border, I do see a lot of people, and the assassin no doubt used multiple names along his journey._";
	text3 = "_I will keep thinking, though, in the hope that I remember something._ She doesn't look optimistic.";
